<template>
    <!-- 系统日志时间线展示，红色表示错误日志 -->
    <el-timeline style="max-width: 600px">
        <el-timeline-item
            v-for="(activity, index) in activities"
            :key="index"
            :timestamp="activity.timestamp"
            color="red"
        >
            {{ activity.content }}
        </el-timeline-item>
    </el-timeline>
</template>

<script setup>
// 引入 Element Plus 时间线组件
import { ElTimeline, ElTimelineItem } from 'element-plus'

// 日志活动数据，实际项目中可从后端获取
const activities = [
    {
        content: '错误1',        // 日志内容
        timestamp: '2018-04-15', // 日志时间
    },
    {
        content: '错误2',
        timestamp: '2018-04-13',
    },
    {
        content: '错误3',
        timestamp: '2018-04-11',
    },
]
</script>